package com.hspedu.spring.homework;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: lihaojie
 * @Description:
 * @DateTime: 2024/2/7 15:26
 **/
public class HomeWork01 {

    @Test
    public void getMonster() {

        ApplicationContext ioc = new ClassPathXmlApplicationContext("beans.xml");
        Object bean = ioc.getBean("com.hspedu.spring.bean.Monster#0");
        System.out.println("bean=" + bean);

    }

}
